const wearDao=require('../dao/womenDao');

async function findByKind(kind){
    if(kind==null||kind=={}||kind==undefined||kind==[]){
        kind='women';
    }
    try{
        //查询衣服，可以返回
        var data=await wearDao.findByKind(kind);
        return {success:true,wears:data};
    }catch(e){
        //不可以返回
        return {success:false,msg:'database is error!'}
    }
}

exports.findByKind=findByKind;
